//package com.cdinternationalcompany.syhapp.common.channel
//
//import android.content.Context
//import com.cdinternationalcompany.syhapp.R
//import io.flutter.plugin.common.MethodChannel
//
//class ResourceApi(private val context: Context) : BaseApi<List<String>, MutableMap<String, String>>() {
//
//    companion object {
//        const val REQUEST_METHOD = "UtilApi/obtainI18nResources"
//    }
//
//    override fun doAction(param: List<String>, result: MethodChannel.Result) {
//        val map: MutableMap<String, String> = hashMapOf()
//        for (eachKey in param) {
//            try {
//                val field = R.string::class.java.getField(eachKey);
//                val resId = field.getInt(null)
//                map[eachKey] = context.resources.getString(resId)
//            } catch (e: Exception) {
//                //e.printStackTrace()
//            }
//        }
//
//        result.success(map)
//    }
//
//}